package com.qfjy.DongWeijia;

import org.junit.Test;

/**
 * @Author dwj
 * @Date 2022-05-09 19:35
 */
public class TestMediatorPattern {
    @Test
    public void MediatorPattern() {
        User robert = new User("Robert");
        User john = new User("John");

        robert.sendMessage("第一条");
        john.sendMessage("第二条");
    }
}
